/**
 * <p>Copyright (c) 2011 深圳市鹏途信息技术有限公司 </p>
 * <p>				   All right reserved. 		     </p>
 * 
 * <p>项目名称 ： 	东莞交通工程质量监督综合业务系统        </p>
 * <p>创建者   :	liuyang 
 * 
 * <p>描   述  :   MiddlePetition.java for com.pengtu.entity.business.middledetect    </p>
 * 
 * <p>最后修改 : $: 2011-9-27-上午10:22:40 v 1.0.0	 liuyang   $     </p>
 * 
 */

package com.pengtu.entity.business.middledetect;

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.pengtu.entity.business.BasicPetition;

/**
 * 公路工程中间交工验收检测申请
 * 
 * MiddlePetition
 * 
 * 2011-9-27 上午10:22:40
 * 
 * @version 1.0.0
 * 
 */
@Entity
@Table(name = "T_Q_CASE_MIDDLE_PETITION")
public class MiddlePetition extends BasicPetition {

	/**
	 * serialVersionUID:TODO
	 * 
	 * @since 1.0.0
	 */

	private static final long serialVersionUID = 1L;

	private MiddleDatection middleDatection;// 流程ID
	private String contract;// 合同段
	private String subunit;// 单位工程
	private String subproject;// 分布工程
	private Date detectionDate;// 拟检测时间

	/**
	 * middleDatection
	 * 
	 * @return the middleDatection
	 * @since 1.0.0
	 */
	@ManyToOne(cascade = CascadeType.REFRESH, fetch = FetchType.LAZY)
	@JoinColumn(name = "FID")
	public MiddleDatection getMiddleDatection() {
		return middleDatection;
	}

	/**
	 * @param middleDatection
	 *            the middleDatection to set
	 */
	public void setMiddleDatection(MiddleDatection middleDatection) {
		this.middleDatection = middleDatection;
	}

	/**
	 * contract
	 * 
	 * @return the contract
	 * @since 1.0.0
	 */
	@Column(name = "CONTRACT")
	public String getContract() {
		return contract;
	}

	/**
	 * @param contract
	 *            the contract to set
	 */
	public void setContract(String contract) {
		this.contract = contract;
	}

	/**
	 * subunit
	 * 
	 * @return the subunit
	 * @since 1.0.0
	 */
	@Column(name = "SUBUNIT")
	public String getSubunit() {
		return subunit;
	}

	/**
	 * @param subunit
	 *            the subunit to set
	 */
	public void setSubunit(String subunit) {
		this.subunit = subunit;
	}

	/**
	 * subproject
	 * 
	 * @return the subproject
	 * @since 1.0.0
	 */
	@Column(name = "SUBPROJECT")
	public String getSubproject() {
		return subproject;
	}

	/**
	 * @param subproject
	 *            the subproject to set
	 */
	public void setSubproject(String subproject) {
		this.subproject = subproject;
	}

	/**
	 * detectionDate
	 * 
	 * @return the detectionDate
	 * @since 1.0.0
	 */
	@Column(name = "DETECTIONDATE")
	public Date getDetectionDate() {
		return detectionDate;
	}

	/**
	 * @param detectionDate
	 *            the detectionDate to set
	 */
	public void setDetectionDate(Date detectionDate) {
		this.detectionDate = detectionDate;
	}

}
